<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./vue3.js"></script>
</head>
<body>
  <script>
    const data = reactive({
      name: 'linli',
      age:18
    })
     const data2 = reactive({
      name: 'linli2',
      age:18
    })
    effect(()=>{
      console.log('1',data.name)
    })
     effect(()=>{
      console.log('2',data2.name)
    })

    setTimeout(()=>{
      data.name = 'linlixxxx'
    },1000)
  </script>
</body>
</html>